﻿using crip.Common;
using crip.Models;
using crip.Services.IRepositorys;

namespace crip.Services.IRepositorys
{
    public interface IAreaRepository:IBaseRepository<Area>
    {
        //分页获得多个Area
        Task<PageList<Area>> GetAllAreaAsync(string? keyword, string? orderby, bool? desc, int pageNumber,int pageSize);
        //通过区域Id获得区域（包含成员数据）
        Task<Area> GetAreaByAreaIdAsync(Guid? areaId);
        //添加area
        Task AddAreaAsync(Area area);
        //删除用户的AreaId 通过 areaId
        void DeleteUserAreaByAreaId(Guid areaId);

    }
}
